var e = require("../../utils/api"), t = require("../../utils/request"), a = require("../../utils/config"), i = require("../../libs/wxParse/wxParse.js");

Page({
    data: {
        introduction: ""
    },
    onLoad: function() {
        this.getAboutUs();
    },
    onPullDownRefresh: function() {
        this.getAboutUs();
    },
    getAboutUs: function() {
        var a = this;
        t.request(t.HttpMethod.GET, e.apiRoute.getAboutUs, {}).then(function(e) {
            "20000" == e.code && (a.setData({
                introduction: e.data.wcaValue
            }), i.wxParse("article", "html", e.data.wcaValue, a, 5));
        });
    },
    wxParseTagATap: function(e) {
        var t = e.currentTarget.dataset.src;
        if (console.log(t), -1 != t.indexOf("www") || -1 != t.indexOf("WWW") || -1 != t.indexOf("https") || -1 != t.indexOf("http")) wx.navigateTo({
            url: "/pages/webview/webview?h5=".concat(encodeURIComponent(t))
        }); else {
            var i = t.replace("https://", "");
            console.log("跳转商城小程序的页面：", i), wx.navigateToMiniProgram({
                appId: a.richShopAppletAppid,
                path: i
            });
        }
    }
});